home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 139 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  661 b 

  1. Path: news.production.compuserve.com!news
  2. From: Dave Hand <70621.3624@CompuServe.COM>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Poor floating point code in BC++
  5. Date: 2 Jan 1996 19:16:03 GMT
  6. Organization: Singular Software, Inc.
  7. Message-ID: <4cc09j$6fm$1@mhafc.production.compuserve.com>
  8. References: <4ca5bk$ff@fountain.mindlink.net>
  9.  
  10. >     That there is a function call is no surprise.  X is 
  11. float and n
  12. > is int.  A conversion is necessary.  From the name, that looks 
  13. like what the routine called does.
  14.  
  15. No, all that is necessary is the fistp instruction. The 
  16. coprocessor has a special instruction to convert a float or 
  17. double to an int. 
  18. double to an int. 
  19.